package com.mask.bank.dao;

import com.mask.bank.entity.AccountEntity;

/**
 * ClassName AccountDao
 * Create by hx
 * Date 2021/9/16 11:19 上午
 */

public interface AccountDao {
    /**
     * 转出，账户减钱
     *
     * @param outName
     * @param money
     */
    int outMoney(String outName,String outCardNumbers, Double money);

    /**
     * 转入，账户加钱
     *
     * @param inName
     * @param money
     */
    int inMoney(String inName,String inCardNumbers,Double money);

    /**
     * 开户
     * @param accountEntity
     * @return
     */
    Integer addAccount(AccountEntity accountEntity);


    /**
     * 销户
     * @param deleteAccount
     * @return
     */
    Integer deleteAccount(AccountEntity deleteAccount);

    AccountEntity queryAccountMoney(AccountEntity queryAccountMoney);
}
